package club.hicode.daydayup.collection;

import com.google.common.collect.ImmutableList;
import org.junit.Test;

import java.util.HashMap;
import java.util.Vector;

/**
 * 集合的测试
 *
 * @author Liu Chunfu
 * @date 2018-06-20 上午9:33
 **/
public class CollTest {

    @Test
    public void test1() {
        Vector<String> vector = new Vector<>();
        vector.add("123");
    }

    @Test
    public void hashMapTest() {
        HashMap<String, String> map = new HashMap<>();
        map.put("1", "a");
        map.put("2", "b");
        System.out.println(123);
    }

    @Test
    public void testList() {
        ImmutableList<String> list = ImmutableList.of("1", "2");
        for (String s : list) {
            System.out.println(s);
        }
    }


}

